package com.example.bnuzzu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.bnuzzu.common.dto.HouseListDto;
import com.example.bnuzzu.common.dto.SearchDto;
import com.example.bnuzzu.entity.Houseinfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author BNUZZU
 * @since 2021-04-13
 */
public interface HouseinfoService extends IService<Houseinfo> {
    IPage<HouseListDto> selectHousePage(Page<HouseListDto> page, Integer state);

    IPage<HouseListDto> searchHousePage(Page<HouseListDto> page, SearchDto searchDto, Integer state);

    List<HouseListDto> getAllhouse();
}
